package cn.rengy.auth.entity;

import cn.rengy.auth.entity.principal.Identity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.security.Principal;
import java.time.Duration;
import java.util.Date;

@Getter
@Setter
@NoArgsConstructor
public class SessionEntity implements Serializable {

    private Long userId;//统一用户id
    private Date creatTime;//创建时间
    private Duration expires;//有效期
    //private Date lastAccessedTime;//上次访问时间

    private Identity identity;//身份信息
}
